package com.yf.provider;

import android.content.Context;
import android.database.sqlite.SQLiteDatabase;
import android.database.sqlite.SQLiteOpenHelper;

public class MyOpenHelper extends SQLiteOpenHelper {

	
	public MyOpenHelper(Context context) {
		super(context, "test.db", null, 1);
	}

	@Override
	public void onCreate(SQLiteDatabase db) {
		db.execSQL("create table user(_id integer primary key autoincrement, name varchar(20),phone varchar(12))");
		db.execSQL("insert into user(name,phone) values('yf', '13688888888')");
		db.execSQL("insert into user(name,phone) values('ywj', '13699999999')");
		db.execSQL("insert into user(name,phone) values('lmb', '13677777777')");
		db.execSQL("insert into user(name,phone) values('zjy', '13655555555')");
	}

	@Override
	public void onUpgrade(SQLiteDatabase db, int oldVersion, int newVersion) {
		
	}

}
